
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>{$Think.config.site.title} - 支付设置</title>

    <meta name="keywords" content="{$Think.config.site.keywords}">
    <meta name="description" content="{$Think.config.site.description}">

    <link rel="shortcut icon" href="favicon.ico"> <link href="{$Think.config.site.resource_url}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/animate.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/ionRangeSlider/ion.rangeSlider.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/clockpicker/clockpicker.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="{$Think.config.site.resource_url}css/plugins/markdown/bootstrap-markdown.min.css" />
    <!-- 文件上传样式 -->
    <link rel="stylesheet" type="text/css" href="{$Think.config.site.resource_url}css/plugins/webuploader/webuploader.css">
    <link rel="stylesheet" type="text/css" href="{$Think.config.site.resource_url}css/demo/webuploader-demo.css">

    <link href="{$Think.config.site.resource_url}css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeIn">
        <div class="row">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">{:lang('微信商户设置')}</a>
                        </li>
                        <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">{:lang('支付宝支付设置')}</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="panel-body">
                                <!-- <form class="form-horizontal m-t" id="commentForm" method="post" enctype="multipart/form-data" action="" > -->
                                    <form id="myforms" name="myforms" method="post" action="">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">{:lang('商户号')}：</label>
                                        <div class="col-sm-8">
                                            <input id="cname" name="mchid" minlength="2" type="text" value="{$pay.mchid}" class="form-control" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <input type="hidden" name="id" value="{$pay.id}">
                                    <input type="hidden" name="submerchant" value="1">
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-primary" type="button" id="onbtn">{:lang('提交')}</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div id="tab-2" class="tab-pane">
                            <div class="panel-body">
                                <form class="form-horizontal m-t" id="commentForm" method="post" action="<?php echo \think\Request::instance()->root(); ?>/ausagent/Jysetting/edit">
                                     <h3>{:lang('暂未开放该接口')}</h3>
                                </form>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
    </div>


    <!-- 全局js -->
   <!-- 全局js -->
    <script src="{$Think.config.site.resource_url}js/jquery.min.js?v=2.1.4"></script>
    <script src="{$Think.config.site.resource_url}js/bootstrap.min.js?v=3.3.6"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/layer/layer.min.js"></script>

    <script src="{$Think.config.site.resource_url}js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
    <!-- 自定义js -->
    <script src="{$Think.config.site.resource_url}js/content.js?v=1.0.0"></script>
    <!-- Chosen -->
    <script src="{$Think.config.site.resource_url}js/plugins/chosen/chosen.jquery.js"></script>
    <script type="text/javascript">
    $(function(){
        $('#onbtn').click(function(){
            var formdata = $('#myforms').serialize();
            $.ajax({
                type : 'POST',
                url  : '<?php echo \think\Request::instance()->root(); ?>/ausagent/Jysetting/paysetting',
                dataType : 'json',
                data : formdata,
                async : false,
                success : function(result){
                    if(0 == result.code){
                        layer.msg(result.msg, {icon: 1});
                        window.location.reload();
                    }else{
                        layer.msg(result.msg, {icon: 5});
                    }
                },
                error : function(){
                    layer.msg("{:lang('服务器错误！请稍后重试')}", {icon: 2});
                }
            })
        });
    });
    </script>
    


</body>

</html>
